package com.hei.dao;

import com.hei.pojo.Barticle;
import com.hei.pojo.BarticleExample;
import com.hei.pojo.dto.BarticleDto;
import com.hei.pojo.dto.ManageArticle;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BarticleMapper {
    long countByExample(BarticleExample example);

    int deleteByExample(BarticleExample example);

    int deleteByPrimaryKey(String id);

    int insert(Barticle record);

    int insertSelective(Barticle record);

    List<Barticle> selectByExampleWithBLOBs(BarticleExample example);

    List<Barticle> selectByExample(BarticleExample example);

    Barticle selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Barticle record, @Param("example") BarticleExample example);

    int updateByExampleWithBLOBs(@Param("record") Barticle record, @Param("example") BarticleExample example);

    int updateByExample(@Param("record") Barticle record, @Param("example") BarticleExample example);

    int updateByPrimaryKeySelective(Barticle record);

    int updateByPrimaryKeyWithBLOBs(Barticle record);

    int updateByPrimaryKey(Barticle record);

    List<BarticleDto> selectByPage(Map<String,Object> map);

    int totalCountArticle();

    int countByKid(String kid);

    int countByLid(String lid);

    int unpublishTotalCountArticle();

    void updatePublish(String id);

   void updateUnpublish(String id);

   List<ManageArticle> queryManageArticle();




}